package com.example.bridgePattern;

import com.example.bridgePattern.shape.Circle;
import com.example.bridgePattern.shape.GreenCircle;
import com.example.bridgePattern.shape.RedCircle;
import com.example.bridgePattern.shape.Shape;

/**
 * 桥接demo
 * sun 2017-12-15
 */
public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle(new RedCircle(),100,100,10);
        Shape greenCircle = new Circle(new GreenCircle(),100,100,10);

        redCircle.draw();
        greenCircle.draw();
    }
}
